package com.bincloud.vue.admin.web.util.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: bincloud, mvpzhou
 * @Date: Create By bincloud, mvpzhou on 2022/2/15
 */
@Configuration
@ConfigurationProperties(prefix = "vue.admin.jwt")
@Data
public class JwtConfig {
    /**
     * token 请求头配置
     */
    private String header = "Authorization";
    /**
     * token 负载前缀配置
     */
    private String head = "Bearer ";
    /**
     * token 过期时间配置 单位:毫秒
     */
    private Long expiration = 7200000L;
    /**
     * token 加密密钥
     */
    private String secret = "vue-admin-service-secret";
}
